﻿using Microsoft.Xna.Framework;

namespace TrinityEngine.UI
{
    public class RectTransform : Transform
    {
        public Vector2 pivot;

        public Vector2 sizeDelta;

        public Rectangle rect
        {
            get;
            /*{
                return new Rectangle((position - pivot * sizeDelta * scale).RoundToInt(), (scale * sizeDelta).RoundToInt());
            }*/
        }

        public RectTransform()
        {
            pivot = Vector2.one / 2f;
            sizeDelta = new Vector2(100f, 100f);
        }
    }
}
